﻿
// ****************************************************************
// 
// Copyright © 2013
// Author:Neil
// Creation Time:2013/6/13 22:43:41
// 
// File Name:IOhelper.cs
// File Description:
// 
// ****************************************************************


using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Kunlun.Common
{
    /// <summary>
    /// IO相关的帮助函数类
    /// </summary>
    public static class IOhelper
    {
        #region Variables

        #endregion

        #region Methods

        /// <summary>
        /// 根据给定的路径，判断其目录是否存在，如果不存在，则自动创建
        /// </summary>
        /// <param name="path"></param>
        public static void PrepareDirectory(String path)
        {
            //var dir = System.IO.Directory
        }

        /// <summary>
        /// 获取应用程序根目录
        /// </summary>
        /// <param name="subDirectory">如果不为null，则自动创建子目录</param>
        /// <returns></returns>
        public static String GetRootDirectory(String subDirectory = null)
        {
            //AppDomain
        }
        #endregion
    }
}



